function longTodo() {
    //移动端/pc端通用代码：
    var ing = document.querySelector('.ing');
    var ing_lis = ing.querySelectorAll('li');
    var will = document.querySelector('.will');
    var will_lis = will.querySelectorAll('li');
    var down = document.querySelector('.down');
    var down_lis = down.querySelectorAll('li');
    var op_delete = document.querySelectorAll('.delete');

    var ing_span = document.querySelector('.ing h3 span:first-child span');
    var will_span = document.querySelector('.will h3 span:first-child span');
    var down_span = document.querySelector('.down h3 span:first-child span');
    // (完成个数/总个数)计算函数：
    function getPercentage() {
        //今日计划(完成个数/总个数)计算：
        ing_lis = document.querySelectorAll('.ing .todo li');
        will_lis = document.querySelectorAll('.will .todo li');
        down_lis = document.querySelectorAll('.down .hasdown li');
        //长期计划(完成个数/总个数)计算：
        percentage([ing_lis, down_lis, will_lis], ing_span);
        percentage([will_lis, ing_lis, down_lis], will_span);
        percentage([down_lis, ing_lis, will_lis], down_span);
    }
    getPercentage();
    // delete删除按钮
    for (let i = 0; i < op_delete.length; i++) {
        op_delete[i].addEventListener('click', function() {
            console.log(op_delete[i].parentNode.parentNode.parentNode);
            op_delete[i].parentNode.parentNode.parentNode.removeChild(op_delete[i].parentNode.parentNode);
            getPercentage();

        })
    }

    //这里执行的是移动端的代码；
    // console.log("移动");
    for (let i = 0; i < ing_lis.length; i++) {
        slide(ing_lis[i], getPercentage);
    }
    for (let i = 0; i < will_lis.length; i++) {
        slide(will_lis[i], getPercentage);
    }
    for (let i = 0; i < down_lis.length; i++) {
        slide(down_lis[i], getPercentage);
    }

}
